﻿
#include "CTitleTakeOffOrWear.h"
#include "ManagerHelper.h"

#include "../share/user_define.h"

//-------------------------------------------------------------------------------
CTitleTakeOffOrWear::CTitleTakeOffOrWear(uint32_t uid, uint32_t pn)
	: BaseMessage(uid, pn)
{
	_safe_guard_begin;
	_safe_guard_end;
}

//-------------------------------------------------------------------------------
CTitleTakeOffOrWear::~CTitleTakeOffOrWear(void)
{

}

//-------------------------------------------------------------------------------
void CTitleTakeOffOrWear::SetTitleTakeOffOrWearData(int32_t ret, uint32_t titleId
	, uint32_t oprType)
{
	_safe_guard_begin;

	if (-1 == ret)
	{
		m_jv["desc"] = "false";
	}
	else
	{
		m_jv["desc"] = "access";
		ret = 0;
	}

	m_jv["ret"] = ret; 

	m_jv["titleId"] = titleId;
	m_jv["oprType"] = oprType;

	_safe_guard_end;
}
